// Package serializer defines the serialization interface for GoCelery
package serializer

// Serializer is the interface for converting between Go types and serialized formats
type Serializer interface {
	// Encode a Go object to bytes
	Encode(v interface{}) ([]byte, error)

	// Decode bytes to a Go object
	Decode(data []byte, v interface{}) error

	// Get the content type of this serializer
	ContentType() string
}
